package com.sandu.user.activity

import android.os.Bundle
import android.util.Log
import com.alibaba.android.arouter.facade.annotation.Route
import com.sandu.lib_common.arouter.ARouterPath
import com.sandu.lib_common.base.BaseDBActivity
import com.sandu.user.databinding.MineActivityBinding
import com.sandu.user.viewmodel.state.MineViewModel


@Route(path = ARouterPath.MINE_ACTIVITY)
public class MineActivity : BaseDBActivity<MineViewModel, MineActivityBinding>() {
//    [The inject fields CAN NOT BE 'private'!!! please check field [name] in class [com.sandu.user.activity.MineActivity]]
//    @Autowired
//    public var name: String? = null
//
//    @Autowired
//    public var age: Int = 0
//
//    @Autowired(name = "girl")// Map different parameters in the URL by name
//    public var boy: Boolean = false

    override fun initView(savedInstanceState: Bundle?) {

        intent.extras?.getString("name")?.let { Log.d("test111", it) }
//        Log.d("Clark", "$name-$age-$boy")

        mDatabind.mineText.setOnClickListener {
            Log.d("test", "click")
        }

    }
}